
import Vue from 'vue'
import App from './App'

// 引入样式文件
import "../node_modules/bootstrap/dist/css/bootstrap.css"
import "./assets/css/index.css"

Vue.config.productionTip = false

// 引入vue-router
import VueRouter from "vue-router"

Vue.use(VueRouter)

import Content from "./components/content.vue"
// 创建路由对象
var router = new VueRouter({
  routes: [
    {
      path: "/foo",
      component: {
        template:"<div>foo</div>"
      }
    },
    {
      path: "/bar",
      component: {
        template:"<div>bar</div>"
      }
    },
    {
      path: "/content",
      component: Content
     }
   ]
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
  router
})
